import request from '@/utils/request'

// 查询消防列表
export function listFire_alarm(query) {
  return request({
    url: '/fire_alarm/fire_alarm/list',
    method: 'get',
    params: query
  })
}

// 查询消防详细
export function getFire_alarm(id) {
  return request({
    url: '/fire_alarm/fire_alarm/' + id,
    method: 'get'
  })
}

// 新增消防
export function addFire_alarm(data) {
  return request({
    url: '/fire_alarm/fire_alarm',
    method: 'post',
    data: data
  })
}

// 修改消防
export function updateFire_alarm(data) {
  return request({
    url: '/fire_alarm/fire_alarm',
    method: 'put',
    data: data
  })
}

// 删除消防
export function delFire_alarm(id) {
  return request({
    url: '/fire_alarm/fire_alarm/' + id,
    method: 'delete'
  })
}
